package cate.game.train.rune.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.role.bag.rune.Rune;
import easy.java.dev.note.NoteField;

@ClientMsg(title= "徽章突破 の 返回")
public class RuneLevelUpResp implements MsgOutput{

    @NoteField(value = "徽章信息", detail = "突破后的徽章")
    public Rune rune;

    @NoteField(value = "英雄ID", detail = "如果是英雄身上的徽章就会有这个字段")
    public String heroUid;

    @NoteField(value = "部位ID", detail = "如果是英雄身上的徽章就会有这个字段")
    public byte pos;

    public RuneLevelUpResp(){

    }

    public RuneLevelUpResp(Rune rune, String heroUid, byte pos) {
        this.rune = rune;
        this.heroUid = heroUid;
        this.pos = pos;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.RUNE_LEVEL_UP_RESP;
    }
}
